﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="MyNet.QueryWorkflow.QueryWorkflowExample"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:local="clr-namespace:MyNet.QueryWorkflow.Operators"
 xmlns:local1="clr-namespace:MyNet.QueryWorkflows.Operators"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:mw="clr-namespace:MyNet.WebServices;assembly=MyNet.WebServices"
 xmlns:mwd="clr-namespace:MyNet.WebServices.DataModel;assembly=MyNet.WebServices"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="myNetDbAmericanService" Type="InArgument(mw:IMyNetDbService)" />
    <x:Property Name="myNetDbAsianService" Type="InArgument(mw:IMyNetDbService)" />
    <x:Property Name="myNetDbEuropeanService" Type="InArgument(mw:IMyNetDbService)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>MyNet.QueryWorkflow.QueryWorkflowExample_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>MyNet.WebServices</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>MyNet.WebServices</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>MyNet.QueryWorkflow</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="contactsInAmerica" />
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="contactsInEurope" />
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="contactsInAsia" />
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="rUnion" />
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="rConcatenation" />
      <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="rIntersection" />
    </Sequence.Variables>
    <Parallel DisplayName="Get MyNetDB Contacts" sap2010:WorkflowViewState.IdRef="Parallel_1">
      <Assign DisplayName="Get Contacts In Europe" sap2010:WorkflowViewState.IdRef="Assign_2">
        <Assign.To>
          <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">contactsInEurope</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">myNetDbEuropeanService.getContacts()</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign DisplayName="Get Contacts In America" sap2010:WorkflowViewState.IdRef="Assign_1">
        <Assign.To>
          <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">contactsInAmerica</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">myNetDbAmericanService.getContacts()</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
      <Assign DisplayName="Get Contacts In Asia" sap2010:WorkflowViewState.IdRef="Assign_3">
        <Assign.To>
          <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">contactsInAsia</mca:CSharpReference>
          </OutArgument>
        </Assign.To>
        <Assign.Value>
          <InArgument x:TypeArguments="scg:List(mwd:Contact)">
            <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">myNetDbAsianService.getContacts()</mca:CSharpValue>
          </InArgument>
        </Assign.Value>
      </Assign>
    </Parallel>
    <Sequence DisplayName="Write Into Console" sap2010:WorkflowViewState.IdRef="Sequence_4">
      <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_2">
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">"Contacts in Europe: " + contactsInEurope.Count</mca:CSharpValue>
        </InArgument>
      </WriteLine>
      <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_7">
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">"Contacts in America: " + contactsInAmerica.Count</mca:CSharpValue>
        </InArgument>
      </WriteLine>
      <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_8">
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">"Contacts in Asia: " + contactsInAsia.Count</mca:CSharpValue>
        </InArgument>
      </WriteLine>
    </Sequence>
    <Parallel sap2010:WorkflowViewState.IdRef="Parallel_2">
      <Sequence DisplayName="Concat ( America, Asia, Europe )" sap2010:WorkflowViewState.IdRef="Sequence_7">
        <Sequence.Variables>
          <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="tmp" />
        </Sequence.Variables>
        <local:Concatenation sap2010:WorkflowViewState.IdRef="Concatenation_1">
          <local:Concatenation.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAmerica</mca:CSharpValue>
            </InArgument>
          </local:Concatenation.leftOperand>
          <local:Concatenation.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpReference>
            </OutArgument>
          </local:Concatenation.result>
          <local:Concatenation.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInEurope</mca:CSharpValue>
            </InArgument>
          </local:Concatenation.rightOperand>
        </local:Concatenation>
        <local:Concatenation sap2010:WorkflowViewState.IdRef="Concatenation_2">
          <local:Concatenation.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpValue>
            </InArgument>
          </local:Concatenation.leftOperand>
          <local:Concatenation.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">rConcatenation</mca:CSharpReference>
            </OutArgument>
          </local:Concatenation.result>
          <local:Concatenation.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAsia</mca:CSharpValue>
            </InArgument>
          </local:Concatenation.rightOperand>
        </local:Concatenation>
      </Sequence>
      <Sequence DisplayName="Union ( America, Europe, Asia )" sap2010:WorkflowViewState.IdRef="Sequence_2">
        <Sequence.Variables>
          <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="tmp" />
        </Sequence.Variables>
        <local1:Union DisplayName="Union ( America, Europe )" sap2010:WorkflowViewState.IdRef="Union_1">
          <local1:Union.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAmerica</mca:CSharpValue>
            </InArgument>
          </local1:Union.leftOperand>
          <local1:Union.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpReference>
            </OutArgument>
          </local1:Union.result>
          <local1:Union.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInEurope</mca:CSharpValue>
            </InArgument>
          </local1:Union.rightOperand>
        </local1:Union>
        <local1:Union DisplayName="Union ( TMP, Asia )" sap2010:WorkflowViewState.IdRef="Union_2">
          <local1:Union.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpValue>
            </InArgument>
          </local1:Union.leftOperand>
          <local1:Union.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">rUnion</mca:CSharpReference>
            </OutArgument>
          </local1:Union.result>
          <local1:Union.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAsia</mca:CSharpValue>
            </InArgument>
          </local1:Union.rightOperand>
        </local1:Union>
      </Sequence>
      <Sequence DisplayName="Intersection ( America, Europe, Asia )" sap2010:WorkflowViewState.IdRef="Sequence_3">
        <Sequence.Variables>
          <Variable x:TypeArguments="scg:List(mwd:Contact)" Name="tmp" />
        </Sequence.Variables>
        <local1:Intersection DisplayName="Intersection ( America, Europe )" sap2010:WorkflowViewState.IdRef="Intersection_1">
          <local1:Intersection.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAmerica</mca:CSharpValue>
            </InArgument>
          </local1:Intersection.leftOperand>
          <local1:Intersection.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpReference>
            </OutArgument>
          </local1:Intersection.result>
          <local1:Intersection.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInEurope</mca:CSharpValue>
            </InArgument>
          </local1:Intersection.rightOperand>
        </local1:Intersection>
        <local1:Intersection DisplayName="Intersection ( TMP, Asia )" sap2010:WorkflowViewState.IdRef="Intersection_2">
          <local1:Intersection.leftOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">tmp</mca:CSharpValue>
            </InArgument>
          </local1:Intersection.leftOperand>
          <local1:Intersection.result>
            <OutArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpReference x:TypeArguments="scg:List(mwd:Contact)">rIntersection</mca:CSharpReference>
            </OutArgument>
          </local1:Intersection.result>
          <local1:Intersection.rightOperand>
            <InArgument x:TypeArguments="scg:List(mwd:Contact)">
              <mca:CSharpValue x:TypeArguments="scg:List(mwd:Contact)">contactsInAsia</mca:CSharpValue>
            </InArgument>
          </local1:Intersection.rightOperand>
        </local1:Intersection>
      </Sequence>
    </Parallel>
    <WriteLine Text="Done" sap2010:WorkflowViewState.IdRef="WriteLine_9" />
    <sads:DebugSymbol.Symbol>d0hDOlxVc2Vyc1xKXERlc2t0b3BcY2RtXEV4NVxNeU5ldC5RdWVyeVdvcmtmbG93XFF1ZXJ5V29ya2Zsb3dFeGFtcGxlLnhhbWwwMgPrAQ4CAQE7BWAQAwH2AWEFcRADAdQBcgXoARACAQTpAQXpAUwCAQI8B0cQAwGhAkgHUxADAYwCVAdfEAMB9wFiB2YTAwHrAWcHaxMDAeABbAdwEwMB1QFzB5kBEgMBjwGaAQfAARICAUrBAQfnARICAQXpARXpARsCAQNEDUR8AwGsAj8NP3ADAaICUA1QfAMBlwJLDUtxAwGNAlwNXHkDAYICVw1XbgMB+AFkC2R4AwHsAWkLaXoDAeEBbgtudAMB1gF3CYcBHwMBsgGIAQmYAR8DAZABngEJrgEYAgFtrwEJvwEYAgFLxQEJ1QEfAgEo1gEJ5gEfAgEGeg96awMByQGEAQ+EAWoDAb4Bfw9/ZQMBswGLAQ+LAV0DAacBlQEPlQFoAwGcAZABD5ABcAMBkQGhAQ+hAWsDAYQBqwEPqwFqAgF5pgEPpgFlAgFusgEPsgFdAgFivAEPvAFoAgFXtwEPtwFoAgFMyAEPyAFrAgE/0gEP0gFqAgE0zQEPzQFlAgEp2QEP2QFdAgEd4wEP4wFoAgES3gEP3gFvAgEH</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Parallel_1" sap:VirtualizedContainerService.HintSize="920,108">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="WriteLine_7" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="WriteLine_8" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="920,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Concatenation_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Concatenation_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_7" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Union_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Union_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Intersection_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Intersection_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Parallel_2" sap:VirtualizedContainerService.HintSize="920,97">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteLine_9" sap:VirtualizedContainerService.HintSize="920,62" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="942,562">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="MyNet.QueryWorkflow.QueryWorkflowExample_1" sap:VirtualizedContainerService.HintSize="982,642" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>